package com.ys.entity.business;

import javax.persistence.Table;

import java.math.BigDecimal;
import java.util.Date;

import com.ys.entity.base.BaseEntity;

/**
*/
@Table(name="`ys_develop_detail`", catalog="id")
public class YsDevelopDetail extends BaseEntity<YsDevelopDetail> {

	private Long id; // 主键ID
	private String img; // 商品图片，默认竞品封面图
	private String code; // 商品编码
	private String codeHs; // 海关编码（HS）
	private String asin; // ASIN码
	private Long userId; // 用户ID
	private Integer sizeLength; // 长度，毫米
	private Integer sizeWidth; // 宽度，毫米
	private Integer sizeHeight; // 高度，毫米
	private Integer sizeWeight; // 重量，克
	private BigDecimal priceIn; // 采购价，英镑
	private BigDecimal fbaCommPercent; // FBA佣金比
	private String name; // 商品名称
	private String nameCn; // 商品品名（中文）
	private String nameEn; // 商品品名（英文）
	private String nameUnit; // 单位名称
	private String materialCn; // 商品材质（中文）
	private String materialEn; // 商品材质（英文）
	private String usageCn; // 商品用途（中文）
	private String usageEn; // 商品用途（英文）
	private String combination; // 商品组合
	private String linkIn; // 采购链接
	private BigDecimal priceService; // 商品服务费
	private String remark; // 备注
	private String resultInfo; // 结果信息，JSON格式
	private Integer status; // 
	private Date createTime; // 
	private Date updateTime; // 

	public Long getId() {
		return id;
	}
	public YsDevelopDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getImg() {
		return img;
	}
	public YsDevelopDetail setImg(String img) {
		this.img = img;
		return this;
	}
	public String getCode() {
		return code;
	}
	public YsDevelopDetail setCode(String code) {
		this.code = code;
		return this;
	}
	public String getCodeHs() {
		return codeHs;
	}
	public YsDevelopDetail setCodeHs(String codeHs) {
		this.codeHs = codeHs;
		return this;
	}
	public String getAsin() {
		return asin;
	}
	public YsDevelopDetail setAsin(String asin) {
		this.asin = asin;
		return this;
	}
	public Long getUserId() {
		return userId;
	}
	public YsDevelopDetail setUserId(Long userId) {
		this.userId = userId;
		return this;
	}
	public Integer getSizeLength() {
		return sizeLength;
	}
	public YsDevelopDetail setSizeLength(Integer sizeLength) {
		this.sizeLength = sizeLength;
		return this;
	}
	public Integer getSizeWidth() {
		return sizeWidth;
	}
	public YsDevelopDetail setSizeWidth(Integer sizeWidth) {
		this.sizeWidth = sizeWidth;
		return this;
	}
	public Integer getSizeHeight() {
		return sizeHeight;
	}
	public YsDevelopDetail setSizeHeight(Integer sizeHeight) {
		this.sizeHeight = sizeHeight;
		return this;
	}
	public Integer getSizeWeight() {
		return sizeWeight;
	}
	public YsDevelopDetail setSizeWeight(Integer sizeWeight) {
		this.sizeWeight = sizeWeight;
		return this;
	}
	public BigDecimal getPriceIn() {
		return priceIn;
	}
	public YsDevelopDetail setPriceIn(BigDecimal priceIn) {
		this.priceIn = priceIn;
		return this;
	}
	public BigDecimal getFbaCommPercent() {
		return fbaCommPercent;
	}
	public YsDevelopDetail setFbaCommPercent(BigDecimal fbaCommPercent) {
		this.fbaCommPercent = fbaCommPercent;
		return this;
	}
	public String getName() {
		return name;
	}
	public YsDevelopDetail setName(String name) {
		this.name = name;
		return this;
	}
	public String getNameCn() {
		return nameCn;
	}
	public YsDevelopDetail setNameCn(String nameCn) {
		this.nameCn = nameCn;
		return this;
	}
	public String getNameEn() {
		return nameEn;
	}
	public YsDevelopDetail setNameEn(String nameEn) {
		this.nameEn = nameEn;
		return this;
	}
	public String getNameUnit() {
		return nameUnit;
	}
	public YsDevelopDetail setNameUnit(String nameUnit) {
		this.nameUnit = nameUnit;
		return this;
	}
	public String getMaterialCn() {
		return materialCn;
	}
	public YsDevelopDetail setMaterialCn(String materialCn) {
		this.materialCn = materialCn;
		return this;
	}
	public String getMaterialEn() {
		return materialEn;
	}
	public YsDevelopDetail setMaterialEn(String materialEn) {
		this.materialEn = materialEn;
		return this;
	}
	public String getUsageCn() {
		return usageCn;
	}
	public YsDevelopDetail setUsageCn(String usageCn) {
		this.usageCn = usageCn;
		return this;
	}
	public String getUsageEn() {
		return usageEn;
	}
	public YsDevelopDetail setUsageEn(String usageEn) {
		this.usageEn = usageEn;
		return this;
	}
	public String getCombination() {
		return combination;
	}
	public YsDevelopDetail setCombination(String combination) {
		this.combination = combination;
		return this;
	}
	public String getLinkIn() {
		return linkIn;
	}
	public YsDevelopDetail setLinkIn(String linkIn) {
		this.linkIn = linkIn;
		return this;
	}
	public BigDecimal getPriceService() {
		return priceService;
	}
	public YsDevelopDetail setPriceService(BigDecimal priceService) {
		this.priceService = priceService;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public YsDevelopDetail setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getResultInfo() {
		return resultInfo;
	}
	public YsDevelopDetail setResultInfo(String resultInfo) {
		this.resultInfo = resultInfo;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public YsDevelopDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public YsDevelopDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public YsDevelopDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static YsDevelopDetail ysDevelopDetail(
		String img,
		String code,
		String codeHs,
		String asin,
		Long userId,
		Integer sizeLength,
		Integer sizeWidth,
		Integer sizeHeight,
		Integer sizeWeight,
		BigDecimal priceIn,
		BigDecimal fbaCommPercent,
		String name,
		String nameCn,
		String nameEn,
		String nameUnit,
		String materialCn,
		String materialEn,
		String usageCn,
		String usageEn,
		String combination,
		String linkIn,
		BigDecimal priceService,
		String remark,
		String resultInfo,
		Integer status
			) {
		YsDevelopDetail entity = new YsDevelopDetail();
		entity.setImg(img);
		entity.setCode(code);
		entity.setCodeHs(codeHs);
		entity.setAsin(asin);
		entity.setUserId(userId);
		entity.setSizeLength(sizeLength);
		entity.setSizeWidth(sizeWidth);
		entity.setSizeHeight(sizeHeight);
		entity.setSizeWeight(sizeWeight);
		entity.setPriceIn(priceIn);
		entity.setFbaCommPercent(fbaCommPercent);
		entity.setName(name);
		entity.setNameCn(nameCn);
		entity.setNameEn(nameEn);
		entity.setNameUnit(nameUnit);
		entity.setMaterialCn(materialCn);
		entity.setMaterialEn(materialEn);
		entity.setUsageCn(usageCn);
		entity.setUsageEn(usageEn);
		entity.setCombination(combination);
		entity.setLinkIn(linkIn);
		entity.setPriceService(priceService);
		entity.setRemark(remark);
		entity.setResultInfo(resultInfo);
		entity.setStatus(status);
		return entity;
	}
}